<template>
	<view class="video-container">
		<video :src="videoUrl" controls autoplay style="width: 100%; height: 100%"></video>
	</view>
</template>

<script setup>
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		ref
	} from 'vue';

	const videoUrl = ref('');

	onLoad((options) => {
		videoUrl.value = decodeURIComponent(options.videoUrl);
	});
</script>

<style scoped>
	.video-container {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: black;
	}
</style>